/*
 * MODULE  NAME  :
 * PROGRAM NAME  : sbproxy.h
 * AUTHOR        : 
 * CREATE  DATE  : 2015-05-08 10:32:39
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_SBPROXY_H_
#define _H_SBPROXY_H_

#define SB_MAX_HOSTNAME_LEN	256
#define SB_DNS_MAX_IP_LEN	64
struct sb_dns_request
{
	char host[SB_MAX_HOSTNAME_LEN];
	char ip[SB_DNS_MAX_IP_LEN];

	struct list_head sess_list_head;
	struct hlist_node hash_node; 
};

int sb_proxy_send_request_to_server_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_test_connect_http_server_complete_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_get_request_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_accept_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_discard_resp(struct sb_cycle_env *env, int msgtype);

#endif
